package com.eonmind.ai.core.video.platform.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/***
 * AI 平台维护的枚举类
 */
@Getter
@AllArgsConstructor
public enum AiVideoPlatformEnum {
    PIXVERSE(1, "PixVerse", "https://api.bltcy.cn", "sk-LbOfmSR5CbCFCtiq22BfD49eEdB247F6B2819fBdE13c7388");

    private final Integer code;
    private final String name;
    private final String baseUrl;
    private final String apiKey;

    public static AiVideoPlatformEnum getByCode(Integer platform) {
        for (AiVideoPlatformEnum value : values()) {
            if (value.getCode().equals(platform)) {
                return value;
            }
        }
        return null;
    }
}
